class AddAdditionalFieldsToImages < ActiveRecord::Migration
  def self.up
    change_table :images do |t|
      t.column :parent_id,  :integer
      t.column :content_type, :string
      t.column :filename, :string    
      t.column :thumbnail, :string 
      t.column :size, :integer
      t.column :width, :integer
      t.column :height, :integer
    end
  end

  def self.down
    change_table :images do |t|
      t.remove :parent_id,  :integer
      t.remove :content_type, :string
      t.remove :filename, :string    
      t.remove :thumbnail, :string 
      t.remove :size, :integer
      t.remove :width, :integer
      t.remove :height, :integer
    end

  end
end
